INSTALL=install -C

help:
	@echo "The dot files (profile, emacs.d, vimrc, etc)"
	@echo "Type 'make install-all' to install everything"

install:
	$(INSTALL) -m 644 profile ~/.profile
	$(INSTALL) -m 644 hgrc ~/.hgrc
	$(INSTALL) -m 644 gitconfig ~/.gitconfig

install-emacs:
	$(INSTALL) -d -m 755 ~/.emacs.d/site-lisp/ ~/.vim/colors/
	$(INSTALL) -m 644 init.el ~/.emacs.d/
	$(INSTALL) -m 644 site-lisp/* ~/.emacs.d/site-lisp/

install-vim:
	$(INSTALL) -m 644 vimrc ~/.vimrc
	$(INSTALL) -m 644 ../vim/satori.vim ~/.vim/colors/

uninstall:
	rm -f ~/.profile
	rm -rf ~/.emacs* ~/.vim*
	rm -f ~/.hgrc ~/.gitconfig

install-all: install install-emacs install-vim

clean:
	rm *~
